#include <stdio.h>
#include <stdlib.h>
void main()
{
	char buf[100] = {0};
	int i;
	while(1) {
		for(i=1;i<14;i++) {
			sprintf(buf,"./iwconfig wlan0 channel %d && ./iwconfig wlan0 mode monitor",i);
			system(buf);
			usleep(2040000);
		}
	}
}
